home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
TESTING
/
DATA1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
46 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Testing; data elements
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDAT;
var Element1, Element2 : GenericLinkageObjectPointerType;
Data1 : string[100]; Data2, Data3 : string[200];
begin
Data1 := '1) Some data to store in the element.';
Data2 := '2) Some other data to update the element with.';
Data3 := '3) Not functioning properly!';
New (Element1, InitializeEmpty);
System.Dispose (Element1, Intercept);
New (Element1, Initialize (Data1, SizeOf(Data1)));
with Element1^ do begin
Element (Data1);
WriteLn (Data1);
Update (Data2, SizeOf(Data2));
Element (Data1);
WriteLn (Data1);
if IsAllocated then begin
New (Element2, InitializeDuplicate (Element1));
if not IsCompatible(Element2) then
WriteLn ('Element compatiblity check failed.');
with Element2^ do begin
Element (Data3);
WriteLn (Data3);
end;
System.Dispose (Element2, Intercept);
end;
end;
System.Dispose (Element1, Intercept);
end.